from django.conf.urls import patterns, url

urlpatterns = patterns('',

#------------------------------------------------------------------------------
# Home
#------------------------------------------------------------------------------

    # Home page
    url(r'^home-page/$', 'asc_db.views.home_page', name='home_page'),

#------------------------------------------------------------------------------
# Main Pages
#------------------------------------------------------------------------------

    # Seach page
    url(r'^search-page/$', 'asc_db.views.search_page', name='search_page'),
    url(r'^search-page/(?P<active_tab>\w+)/$', 'asc_db.views.search_page',
        name='search_page'),

    # Add page
    url(r'^add-page/$', 'asc_db.views.add_page', name='add_page'),
    url(r'^add-page/(?P<active_tab>\w+)/$', 'asc_db.views.add_page',
        name='add_page'),

    # Reports page
    url(r'^reports-page/$', 'asc_db.views.reports_page', name='reports_page'),

#------------------------------------------------------------------------------
# Forms
#------------------------------------------------------------------------------

    # Groups and teams
    url(r'^group-or-team-form/$', 'asc_db.views.group_or_team_form',
        name='group_or_team_form'),
    url(r'^group-or-team-form/(?P<group_id>\d+)/$',
        'asc_db.views.group_or_team_form',
        name='group_or_team_form'),

    # Addresses
    url(r'^address-form/$', 'asc_db.views.address_form',
        name='address_form'),
    url(r'^address-form/(?P<address_id>\d+)/$', 'asc_db.views.address_form',
        name='address_form'),

    # People
    url(r'^person-form/$', 'asc_db.views.person_form',
        name='person_form'),
    url(r'^person-form/(?P<person_id>\d+)/$', 'asc_db.views.person_form',
        name='person_form'),

)
